﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace chat_winform_wpf
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();

            // elementHost1 界面里面的字体也好设置成微软雅黑，不然wpf中的字体会和elementHost一样显示成宋体
            chatRoom cr = new chatRoom();
            this.elementHost1.Child = cr;
//             UserControl1 cr = new UserControl1();
//             this.elementHost1.Child = cr;

        }
    }
}
